<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="http://java.sun.com/jsp/jstl/myFn" prefix="myFn" %>
<html>
  <head>
  	<%@ include file="/jspf/public.jspf" %>
  </head>
  
  <body>     
  	 给管理员授予角色(支持权限回显):<br /> 
  	 <form action="${shop}/account_updateRid.action" method="post">
  	 	  登陆名:${account.login}<br />
  	 	  真实姓名:${account.name}<br />
  	 	 <hr />
  	 	 选中角色:<br />
		<c:forEach items="${requestScope.roleList}" var="role">
			<input type="checkbox" name="ids" value="${role.id}"
				<c:if test="${myFn:contains(requestScope.myId,role.id)}">
		  	 	 	checked="checked"
		  	 	</c:if>
			 />
			${role.name}<br />
			${role.detail}<br />
		</c:forEach>
  	 	 <input type="submit" value="提交" />
  	 	 <input type="hidden" value="${account.id}" name="id" />
  	 </form>
  </body>
</html>
